# Copyright (c) 2023 by RisingLeaf (https://github.com/RisingLeaf)
#
# Endless Sky is free software: you can redistribute it and/or modify it under the
# terms of the GNU General Public License as published by the Free Software
# Foundation, either version 3 of the License, or (at your option) any later version.
#
# Endless Sky is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE. See the GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along with
# this program. If not, see <https://www.gnu.org/licenses/>.

# Weapons:
outfit "Plasma Discharger"
	"display name" "プラズマ放電器"
	plural "プラズマ放電器"
	category "Guns"
	series "Guns"
	index 12010
	cost 140000
	mass 25
	"outfit space" -20
	"weapon capacity" -20
	"gun ports" -1
	thumbnail "outfit/plasma discharger"
	weapon
		sprite "projectile/plasma discharge"
		sound "plasma discharger"
		"hit effect" "blaster impact"
		"submunition" "plasma particle" 5
		"inaccuracy" 8
		"velocity" 10
		"lifetime" 64
		"random lifetime" 12
		"reload" 40
		"firing energy" 60
		"firing heat" 30
		"shield damage" 33
		"hull damage" 39
		"minable damage" 90
	description "インキピアスは、母星の大気が環に近いおかげで、星系内航行を始めるよりはるか前から小惑星を掘り始めていた。そのため、この採掘道具は彼らの一般的な技術より進んでいるように見えるが、それでも人間の武器の効率には及ばない。"
	description "	放電器そのものは高密度のプラズマ弾を撃ち出し、その弾はしばらくすると細かい粒子へ分かれる。プラズマ注入器のおかげで発射速度は並外れているが、消費電力は厳しい。"

outfit "plasma particle"
	"display name" "プラズマ粒子"
	plural "プラズマ粒子"
	weapon
		sprite "effect/plasma particle"
		"hit effect" "blaster impact"
		"lifetime" 60
		"random velocity" 2
		"inaccuracy" 20
		"shield damage" 6.6
		"hull damage" 7.8
		"minable damage" 18

outfit "Stagnation Beam"
	"display name" "スタグネーションビーム"
	plural "スタグネーションビーム"
	category "Turrets"
	series "Turrets"
	index 12010
	cost 180000
	mass 30
	"outfit space" -30
	"weapon capacity" -30
	"turret mounts" -1
	thumbnail "outfit/stagnation beam"
	licenses
		"Hicemus Conflict"
	weapon
		sprite "projectile/stagnation beam"
			"random start frame"
			"frame rate" 6
		"hardpoint sprite" "hardpoint/stagnation beam"
		sound "stagnation beam"
		"hit effect" "stagnation beam impact"
		"inaccuracy" .5
		"turret turn" 3.8
		"velocity" 600
		"lifetime" 1
		"reload" 1
		"firing energy" 0.5
		"firing heat" 3.2
		# Deal damage to provoke ships.
		"shield damage" 0.1
		"hull damage" 0.1
		"hit force" -40
		"slowing damage" 0.1
	description "スタグネーションビームは、人類がこれまでに作ったどんなものをも上回る、インキピアスの数少ない技術の一つだ。実のところ最初の試作機は、彼らが宇宙旅行を夢見るより前に造られていた。この武器の起源は、母星の軌道から小惑星を引き寄せ、資源をより容易に手に入れるために建造された巨大な炉にある。当然ながら、小惑星が誤って衝突しないよう、減速させる仕組みも組み込まれていた。"
	description "	インキピアスが宇宙飛行を身につけるにつれ、この炉の効率も上がり、より小型で船に積めるトラクタービームが生まれた。この新型のおかげで資源の採取は大いに効率化され、本来は鈍いインキピアスの船にとって大きな益となった。"
	description "	このビームの働きの秘密を知るのは、国家の管理下にあるごく一部のインキピアスの科学者だけだ。その知識が公になれば、ヒケムスとその権力の掌握にとって壊滅的な結果を招きかねない。"

effect "stagnation beam impact"
	sprite "effect/stagnation beam impact"
		"no repeat"
		"frame rate" 30
	"lifetime" 5
	"random angle" 2
	"velocity scale" -.005

outfit "Star Tail"
	"display name" "スターテイル"
	plural "スターテイル"
	category "Secondary Weapons"
	series "Secondary Weapons"
	index 12010
	cost 320000
	mass 48
	"outfit space" -50
	"weapon capacity" -50
	"gun ports" -1
	thumbnail "outfit/star tail launcher"
	"star tail capacity" 20
	licenses
		"Hicemus Conflict"
	weapon
		sprite "projectile/star tail upload"
			"frame rate" 10
			"no repeat"
		sound "star tail"
		"hit effect" "blaster impact"
		"velocity" 1
		"lifetime" 58
		"reload" 180
		"firing energy" 60
		"firing heat" 30
		"shield damage" 820
		"hull damage" 860
		"range override" 3000
		
		# To make the AI fire even if the ship is not directly in front.
		"homing"
			"blindspot"
		"optical tracking" 1
		"turn" 0.5

		ammo "Star Tail Cell"
		"submunition" "Star Tail Projectile" 1
	description "この武器については、これまでほとんど何も公にされていない。極めて不安定なプラズマの塊を撃ち出すという噂だ。"
	description "	この武器を使ったことのある船長によれば、その弾は飛行中に向きを変えられ、標的がかわそうとしても追いかけていったという。"
	description "	この武器の弾薬はどの装備店でも補充できる。"
		to display
			has "gamerule: universal ammo restocking"

outfit "Star Tail Projectile"
	"display name" "スターテイル弾"
	plural "スターテイル弾"
	weapon
		sprite "projectile/star tail"
			"frame rate" 12
		"hit effect" "star tail hit"
		"live effect" "star tail live" 120
		"velocity" 1
		acceleration 5
		drag .2
		"lifetime" 120
		"shield damage" 410
		"hull damage" 430
		"homing"
			"blindspot"
		"optical tracking" 1
		"turn" .5

effect "star tail hit"
	sprite "effect/star tail hit"
		"no repeat"
		"frame rate" 40
	sound "explosion small"
	"lifetime" 30
	"velocity scale" 0.

effect "star tail live"
	sprite "effect/star tail live"
		"no repeat"
		"frame rate" 28
	"lifetime" 15
	"velocity scale" 0.

outfit "Star Tail Cell"
	"display name" "スターテイル・セル"
	plural "スターテイル・セル"
	category "Ammunition"
	cost 1500
	thumbnail "outfit/star tail cell"
	"mass" .1
	"star tail capacity" -1
	description "スターテイルは途方もない量のエネルギーを要するが、インキピアスはそれを短時間で生み出せない。それを補うため、スターテイル・セルにはエネルギーを豊富に蓄えた物質が入っており、発射時にそれを放出する。一つのセルに、ちょうど一発分のエネルギーが収められている。"

outfit "Star Tail Storage"
	"display name" "スターテイル保管庫"
	plural "スターテイル保管庫"
	category "Ammunition"
	cost 6000
	thumbnail "outfit/star tail cell storage"
	"mass" 10
	"outfit space" -10
	"star tail capacity" 20
	ammo "Star Tail Cell"
	licenses
		"Hicemus Conflict"
	description "スターテイル・セルは極めて不安定なため、頑丈な保管の仕組みが要る。この放射状の設計は、一時的に展開できるシールドの一種を使って、小さな爆発になら耐えられる。"
	description "	この容易に拡張できる仕組みの一層分は、砲そのものに最初から付属している。保管場所を増やすには、単に層を上に重ねていけばよい。"

outfitter "Star Tail Cell Restock"
	to sell
		has "gamerule: universal ammo restocking"
		or
			has "outfit: Star Tail"
			has "outfit: Star Tail Storage"
	location
		attributes "outfitter"
	stock
		"Star Tail Cell"


outfit "Horizon Grappler"
	"display name" "ホライズン・グラップラー"
	plural "ホライズン・グラップラー"
	category "Turrets"
	series "Tractor Beams"
	index 12020
	cost 200000
	thumbnail "outfit/horizon grappler"
	"mass" 25
	"outfit space" -25
	"weapon capacity" -25
	"turret mounts" -1
	weapon
		"hardpoint sprite" "hardpoint/horizon grappler"
		"hardpoint offset" 0.
		sound "tractor beam"
		"hit effect" "horizon grappler"
		"tractor beam" 9
		"velocity" 400
		"lifetime" 1
		"reload" 1
		"firing energy" 3.2
		"firing heat" 1.1
	description "インキピアス技術の頂点を示すのが、この採掘装置だ。何世紀もかけて磨き上げられたこのトラクタービームは、彼らがこれまでに開発したどんなものをもはるかに超えている。その名は、宇宙飛行が現れる前に開発された最初の試作機に由来する。母星の環から小惑星を大気へ引き込んで鉱物を集めていた装置だ。"

effect "horizon grappler"
	sprite "effect/horizon grappler"
		"frame rate" 3.5
	"lifetime" 1
	"velocity scale" 1

# Shields/Energy:
outfit "Gas-Class Shield"
	"display name" "気体級シールド"
	plural "気体級シールド"
	category "Systems"
	series "Shields"
	index 12010
	thumbnail "outfit/gas class shield"
	cost 136000
	mass 60
	"outfit space" -60
	"shield generation" .1
	"energy generation" 4.2
	"heat generation" 5
	"shield fuel" .01
	description "シールド技術はインキピアスの最も新しい成果の一つだ。このシールドは人間のシールド装置に似て見えるが、まったく別の原理で働く。その中心では水素が燃やされ、再生のためのエネルギーを生む。これがあまりに効果的だったため、彼らのあらゆる船の主要な動力源にもなった。"

outfit "Liquid-Class Shield"
	"display name" "液体級シールド"
	plural "液体級シールド"
	category "Systems"
	series "Shields"
	index 12020
	thumbnail "outfit/liquid class shield"
	cost 216000
	mass 80
	"outfit space" -90
	"shield generation" .25
	"energy generation" 6.1
	"heat generation" 6
	"shield fuel" .02
	description "このより進んだシールド生成器は、気体ではなく液体を燃やす。それによって効率は大きく上がるが、場所も多く要るため、この装備は大型船でしか人気がない。"

outfit "Metallic Hydrogen Cell"
	"display name" "金属水素セル"
	plural "金属水素セル"
	category "Power"
	series "Batteries"
	index 12010
	thumbnail "outfit/metallic hydrogen cell"
	cost 2500
	mass 20
	"outfit space" -20
	"energy capacity" 500
	description "母星に金属水素が大量にあったため、インキピアスは早い段階で水素によるエネルギー貯蔵を見つけた。彼らの船はたいてい、生み出されたその時にエネルギーを使うので、蓄える量はわずかで足りる。その結果、大半の船はセルを一つしか積んでいない。"

# Engines:
outfit "MH Blue-Class Thruster"
	"display name" "MH 青級推進エンジン"
	plural "MH 青級推進エンジン"
	category "Engines"
	series "Engines"
	index 12011
	thumbnail "outfit/mh blue-class thruster"
	cost 32000
	mass 27
	"outfit space" -27
	"engine capacity" -27
	"flare sprite" "effect/incipias flare/metallic hydrogen small"
		"frame rate" 24
	"flare sound" "incip plasma small"
	"thrust" 24
	"thrusting energy" 2
	"thrusting heat" 2.5
	description "インキピアスの文化では、青は最も弱い色だ。青と銘打たれた推進器は、それを積む船の速さにとって先行きが明るくない。"

outfit "MH Blue-Class Steering"
	"display name" "MH 青級操舵エンジン"
	plural "MH 青級操舵エンジン"
	category "Engines"
	series "Engines"
	index 12010
	thumbnail "outfit/mh blue-class steering"
	cost 28000
	mass 24
	"outfit space" -24
	"engine capacity" -24
	"turn" 498
	"turning energy" 1.
	"turning heat" 3
	description "この操舵装置は船を回すのに必要な最低限の力をかろうじて生むだけだが、安さのおかげで今でもよく使われている。"

outfit "MH Green-Class Thruster"
	"display name" "MH 緑級推進エンジン"
	plural "MH 緑級推進エンジン"
	category "Engines"
	series "Engines"
	index 12021
	thumbnail "outfit/mh green-class thruster"
	cost 44000
	mass 32
	"outfit space" -32
	"engine capacity" -32
	"flare sprite" "effect/incipias flare/metallic hydrogen medium"
		"frame rate" 24
	"flare sound" "incip plasma med"
	"thrust" 30
	"thrusting energy" 2.2
	"thrusting heat" 2.8
	description "インキピアスにとって緑は釣り合いの色だ。この推進器は、場所の必要と強いエンジンの必要とを釣り合わせている。"

outfit "MH Green-Class Steering"
	"display name" "MH 緑級操舵エンジン"
	plural "MH 緑級操舵エンジン"
	category "Engines"
	series "Engines"
	index 12020
	thumbnail "outfit/mh green-class steering"
	cost 35000
	mass 28
	"outfit space" -28
	"engine capacity" -28
	"turn" 618
	"turning energy" 1.1
	"turning heat" 3.1
	description "インキピアスは船を回すことに何か含むところがあるらしい。この操舵装置は青級の上位にあたるはずなのだが、ほとんど改善になっていない。"

outfit "MH Red-Class Thruster"
	"display name" "MH 赤級推進エンジン"
	plural "MH 赤級推進エンジン"
	category "Engines"
	series "Engines"
	index 12031
	thumbnail "outfit/mh red-class thruster"
	cost 50000
	mass 41
	"outfit space" -41
	"engine capacity" -41
	"flare sprite" "effect/incipias flare/metallic hydrogen large"
		"frame rate" 24
	"flare sound" "incip plasma large"
	"thrust" 48
	"thrusting energy" 5
	"thrusting heat" 10
	description "インキピアスの母星に金属水素が豊富にあったことが、この強力なエネルギー源を活かすエンジンの開発につながった。おかげで、彼らの宇宙飛行の歴史の浅さから予想されるより効率のよい推進器が生まれている。"

outfit "MH Red-Class Steering"
	"display name" "MH 赤級操舵エンジン"
	plural "MH 赤級操舵エンジン"
	category "Engines"
	series "Engines"
	index 12030
	thumbnail "outfit/mh red-class steering"
	cost 49000
	mass 41
	"outfit space" -41
	"engine capacity" -41
	"turn" 1134
	"turning energy" 2.5
	"turning heat" 12
	description "撃つためには船を標的へ向けなければならないと、インキピアスも気づいてはいる。この操舵装置は戦闘のために特に設計されたものだが、金に余裕のある船長は採掘にも実に便利だと考えている。"


# Hand to Hand
outfit "Cloud Piercer"
	"display name" "クラウドピアサー"
	plural "クラウドピアサー"
	category "Hand to Hand"
	series "H2H"
	index 12010
	cost 10000
	thumbnail "outfit/cloud piercer"
	licenses
		"Hicemus Conflict"
	"capture attack" .55
	"capture defense" 1.5
	"unplunderable" 1
	description "近接戦となれば、インキピアスは手強い相手だ。この凶悪な武器は他の船へ乗り込むのに最適とは言えないが、守りとなれば、文字どおり敵を切り刻む。"

# Special
outfit "Hicemus Conflict License"
	"display name" "ヒケムス紛争免許"
	plural "ヒケムス紛争免許"
	category "Licenses"
	series "Licenses"
	index 12010
	description "ヒケムスはあなたを信頼してこの免許を与え、最も貴重な技術を垣間見ることを許した。他の勢力に対する優位をもたらすはずの技術を。"
